package ru.tapublog.lib.samsungwallet.api.model;

public class Text extends AbstractViewElement {

	private byte[] color;
	private Align align;
	private String value;

	public Text(String id, String value) {
		this(id, value, null, null);
	}

	public Text(String id, String value, byte[] color, Align align) {
		setId(id);
		setValue(value);
		setColor(color);
		setAlign(align);
	}

	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public byte[] getColor() {
		return color;
	}

	public void setColor(byte[] color) {
		if (color == null)
			return;
		this.color = color.clone();
	}

	public Align getAlign() {
		return this.align;
	}

	public void setAlign(Align align) {
		this.align = align;
	}
}
